package com.ddx.enums;

public enum SmsCodeEnum {

    RESERVED("reserved", "SMS_142145653", "预留"),
    FIND_PWD("find_pwd", "SMS_142145653", "找回密码"),
    REGISTER("register", "SMS_142145653", "注册"),
    LOGIN("login", "SMS_142145653", "登录"),
    SET_LOGIN_PWD("set_login_pwd", "SMS_142145653", "设置登录密码"),
    REGISTER_COMPANY("register_company", "SMS_138077860", "注册机构"),
    REAL_NAME_AUTH("real_name_auth", "SMS_160480073", "实名认证");

    private String value;

    private String code;

    private String desc;

    SmsCodeEnum(String value, String code, String desc) {
        this.value = value;
        this.code = code;
        this.desc = desc;
    }

    public static SmsCodeEnum getByValue(String value) {
        for (SmsCodeEnum obj : SmsCodeEnum.values()) {
            if (obj.value.equalsIgnoreCase(value)) {
                return obj;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
